home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Tools / ApiHooks 2.2 / examples / ASM / BOUND / BindTest.txt < prev    next >
Encoding:
Text File  |  2000-04-04  |  1.2 KB  |  24 lines

  1.  Main.exe process contains master.dll. Now are loaded YesBound.dll
  2. and NotBound.dll. Both import a function from master.dll; moreover
  3. YesBound.dll is bound to master.dll. Bindtest.dll and KindTest.dll
  4. hook master.dll's export. Under W9X is everything allright, because
  5. they don't support binding. Under NT is YesBound.dll in process bound
  6. and master.dll's export is not searched for apis imported by
  7. YesBound.dll - hard offsets are used instead, YesBound's import is
  8. left intact.
  9.  ApiHooks versions below 2.2 can't break such a bonds and LoadLibrary
  10. hooks had to be used (and some apis were missed) or bound module had
  11. to be modified by UnBind. ApiHooks 2.2 can break this bond dynamically
  12. (correct binding -> stale binding) and it is broken by default when
  13. HOOK_EXPORT was specified. There is new flag HOOK_NO_UNBIND which
  14. disables this dynamic unbinding.
  15.  
  16.  Run runme.bat:
  17. 1) master's export will be hooked using KindTest (HOOK_NO_UNBIND)
  18.   - the situation is the same like AH versions below 2.2 were used;
  19.   YesBound is bound (=not hooked)
  20. 2) master's export will be hooked using BindTest
  21.   YesBound isn't bound (=everything is hooked)
  22.  
  23. Also is showed exporting hooks via GetApiHookChain.
  24.